package cn.jeeweb.web.modules.equipment.service.impl;

import cn.jeeweb.common.mybatis.mvc.service.impl.CommonServiceImpl;
import cn.jeeweb.web.modules.equipment.entity.EqsSparePart;
import cn.jeeweb.web.modules.equipment.mapper.EqsSparePartMapper;
import cn.jeeweb.web.modules.equipment.service.IEqsSparePartService;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;


/**
* @description: eqs_spare_service服务实现
*/
@Transactional
@Service("eqsSparePartService")
public class EqsSparePartServiceImpl extends CommonServiceImpl<EqsSparePartMapper,EqsSparePart> implements IEqsSparePartService {

    @Override
    public List<EqsSparePart> getEqsSparePartByOriginId(String originId) {
        return baseMapper.getEqsSparePartByOriginId(originId);
    }

    @Override
    public List<EqsSparePart> getSparePartByEquipmentId(String equipmentId) {
        return baseMapper.getSparePartByEquipmentId(equipmentId);
    }
}